package com.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName orders
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 买药人
     */
    private Long userId;

    /**
     * 审核人
     */
    private Long checkUser;

    /**
     * 总价
     */
    private Double price;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     *
     */
    private Date updateTime;

    /**
     * 0 未审核 1审核成功 2审核驳回
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


    private Integer cancel;

    private String image;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
